package org.itheima.googleplay.ui.weiget;

import org.itheima.googleplay.R;
import org.itheima.googleplay.utils.UIUtils;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * @包名: org.itheima.googleplay.ui.weiget
 * @类名: BaseListView
 * @作者: 肖琦
 * @创建时间 : 2015-3-22 下午2:46:37
 * 
 * @描述: TODO
 * 
 * @SVN版本: $Rev: 12 $
 * @更新人: $Author: xq $
 * @更新时间: $Date: 2015-03-22 16:33:25 +0800 (星期日, 22 三月 2015) $
 * 
 * @更新描述:
 */
public class BaseListView extends ListView
{

	public BaseListView(Context context) {
		super(context);
		init();
	}

	public BaseListView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}

	private void init()
	{
		this.setCacheColorHint(Color.TRANSPARENT);
		this.setSelector(android.R.color.transparent);
		this.setFadingEdgeLength(0);
		this.setDividerHeight(0);
		this.setBackgroundColor(UIUtils.getColor(R.color.bg));
	}
}
